package com.autumn.zero.workflow.application.dto;

import java.io.Serializable;

import com.autumn.common.api.application.DataValidation;
import com.autumn.util.ExceptionUtils;
import com.autumn.util.StringUtils;

/**
 * 流程图片查询
 * 
 * @author 杨昌国 2019-02-25 11:00:56
 */
public class WorkflowImageInput implements Serializable, DataValidation {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2473620319070399821L;

	/**
	 *
	 */
	private Long flowProcessId;

	private String processInstanceId;

	public Long getFlowProcessId() {
		return flowProcessId;
	}

	public void setFlowProcessId(Long flowProcessId) {
		this.flowProcessId = flowProcessId;
	}

	public String getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	@Override
	public void valid() {
		if (this.getFlowProcessId() == null && StringUtils.isNullOrBlank(this.getProcessInstanceId())) {
			ExceptionUtils.throwValidationException("流程id与流程实例id至少一个不能为空");
		}
	}

	

	

	

}
